From 68c0d134da9ba68b757a1a526b389b40f27d42ed Mon Sep 17 00:00:00 2001 From: Massimo Valentini Date: Wed, 5 Dec 2012 18:52:16 +0100 Subject: [PATCH] babl: don't crash processing same format models with different component number --- babl/babl-fish-reference.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/babl/babl-fish-reference.c b/babl/babl-fish-reference.c index 56eeb16..05bdc87 100644 --- a/babl/babl-fish-reference.c +++ b/babl/babl-fish-reference.c @@ -291,7 +291,7 @@ process_same_model (const Babl *babl, } double_buf = babl_malloc (sizeof (double) * n * - BABL (babl->fish.source)->format.components); + BABL (babl->fish.source)->format.model->components); if ( (BABL (babl->fish.source)->format.components == -- 2.30.2